<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>添加文档</title> 
#parse("templet/js.html") 
#parse("templet/css.html")

<link rel="stylesheet" href="css/font-awesome.min.css">
<link href="css/wysiwyg-editor.css" rel="stylesheet">
<script src="js/wysiwyg.js"></script>
<script src="js/wysiwyg-editor.js"></script>

<script src="js/wysiwyg-user.js"></script>
<style type="text/css">
body {
    font-family: Arial, Verdana;
}

p {
    margin: 0;
    padding: 0;
}

.button {
    -moz-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* CSS for the font-name + font-size plugin */
.wysiwyg-toolbar-list {
    max-height: 16em;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: scroll;
}

.wysiwyg-toolbar-list a, .wysiwyg-toolbar-list a:link,
    .wysiwyg-toolbar-list a:visited {
    display: block;
    color: black;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
}

.wysiwyg-toolbar-list a:hover {
    color: HighlightText;
    background-color: Highlight;
}
/* CSS for the smiley plugin */
.wysiwyg-toolbar-smilies {
    padding: 10px;
    text-align: center;
    white-space: normal;
}

.wysiwyg-toolbar-smilies img {
    display: -moz-inline-stack;
    /* inline-block: http://blog.mozilla.org/webdev/2009/02/20/cross-browser-inline-block/ */
    display: inline-block;
    *display: inline;
}
</style>
</head>
<body>
    #parse("templet/navbar.html")

    <div class="row">
        <div class="col-lg-1"></div>


        <div class="col-lg-10">

            <div class="page-header">
                <h1>添加文档</h1>
            </div>

            <form action="document?method=modify" method="post" role="form">
                <div class="form-group col-lg-offset-11">
                    <button type="submit" class="btn btn-primary">提交修改</button>
                </div>
                <input type="text" name="docid" class="nodisplay" value=$!document.docid>
                <div class="form-group">
                    <label>标题</label> <input type="text" name="title"
                        class="form-control" placeholder="请在此输入标题..." value=$!document.title>
                </div>
                <div class="form-group">
                    <label>正文</label>
                    <textarea id="editor" name="content" placeholder="请在此输入文字...">
                        $!document.content
                    </textarea>
                </div>
            </form>
        </div>

        <div class="col-lg-1"></div>
    </div>

</body>
</html>